package com.abing.starry.mapper;

import com.abing.starry.model.dto.interfaces.InvokeCountDTO;
import com.abing.starry.model.entity.InterfaceInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

/**
* @author 阿炳亿点点帅
* @description 针对表【interface_info(接口信息)】的数据库操作Mapper
* @createDate 2024-08-23 15:16:51
* @Entity generator.domain.InterfaceInfo
*/
public interface InterfaceInfoMapper extends BaseMapper<InterfaceInfoEntity> {

    /**
     * 查询接口总调用次数
     * @param page
     * @param name
     * @param userId
     * @return
     */
    IPage<InvokeCountDTO> queryInvokeCount(IPage<InvokeCountDTO> page,
                                           @Param("name") String name,
                                           @Param("userId") String userId);

}




